package cn.pugle.base.ResourseBundle;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 * Created by tzp on 4/27/16.
 */
public class JDKRescBundleTest {
    public static void main(String[] args) {
        ClassLoader classLoader = JDKRescBundleTest.class.getClassLoader();
        System.out.println(classLoader.getResource("."));
        ResourceBundle resource = ResourceBundle.getBundle(JDKRescBundleTest.class.getName(),
                Locale.CHINA);
        System.out.println(resource.getString("name"));
    }
}
